from flask import Flask,request,redirect,url_for

app = Flask(__name__)


@app.route('/login/')
def cdx():
    if request.method == 'GET':
        name = request.args.get('name')
        password = request.args.get('password')
        print(name,password)
        if name == 'fbh' and password == '123':
            return f'{name}登陆进来了哦'
        # return redirect(url_for('fail'))


@app.route('/login_error/')
def fail():
    return '登陆失败'





if __name__ == '__main__':
    app.run()